import axios from "@/axios";

export default {
  // page:function(data){
  //   return axios.get('/cms/admin/moduleCategory/pageData?page='+data.page+'&size='+1)
  // },
  page:function(data){
    return axios.post('/cms/admin/moduleCategory/pageData',data)
  },
  //获取树型结构
  tree:function(data){
    return axios.get('/cms/admin/moduleCategory/tree',data)
  },
  //保存树型结构（拖拽）
  saveTree:function(data){
    return axios.post('/cms/admin/moduleCategory/saveTree',data)
  },
  //保存单个分类
  save:function(data){
    return axios.post('/cms/admin/moduleCategory/save',data)
  },
  //获取详情
  detail:function(data){
    return axios.get('/cms/admin/moduleCategory/detail/'+data)
  },
  //删除单个分类
  delete:function(data){
    return axios.delete('/cms/admin/moduleCategory/delete/'+data)
  },
}